﻿using myapp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myapp.Databases.DAO
{
    public class PossitionDAO
    {
        public static List<PossitionGroupModel> ListPossitionGroup()
        {
            List<PossitionGroupModel> lstPossitonGroup = new List<PossitionGroupModel>();

            for (int i = 1; i < 5; i++)
            {
                PossitionGroupModel group = new PossitionGroupModel() { ID = "ID" + i, Name = "Khu " + i, Description = "Khu Vuc " + i, IsDelete = false, PossitionItems = new List<PossitionModel>() };
                for (int j = 1; j < 15; j++)
                {
                    PossitionModel pos = new PossitionModel() { ID = "ID"+j, Name = "Bàn " + j, Group = group, Order = new Order(), IsDelete = false, State = new PossitionStateModel() };
                    group.PossitionItems.Add(pos);
                }
                lstPossitonGroup.Add(group);
            }
            return lstPossitonGroup;
        }
    }
}
